package com.example.forum.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author hanzishuai
 * @date 2025/3/22 10:27
 * @Description
 */
@Configuration
public class SpringdocConfig {
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("论坛系统API")
                        .version("1.0")
                        .description("论坛系统前后端分离API测试")
                        .contact(new Contact()
                                .name("hanzishuai")
                                .url("https://gitee.com/h142857/forum-system")
                                .email("3159897437@qq.com")));
    }
}
